#include <cstdlib>
#include <iostream>

using namespace std;

extern string Name;

void Info();

void Welcome()
{
     char Choice;
     cout << "Welcome to Atiri, this is developed by Siyuan Gao\n";
     cout << "Single user MUD Atiri" << endl;
     cout << "Do you want to know more about the game? (Y/N)" << endl;
     cin >> Choice;
     if((Choice == 'Y') ||(Choice == 'y'))
     {
               Info();
     }
}

void Info()
{
     cout << "**********************************************************" << endl;
     cout << "* Once upon a time, there is a kingdom in China, the     *" << endl;
     cout << "* monster always attack people during the first day of   *" << endl;
     cout << "* the year based on lunar calendar. The the Emperor      *" << endl;
     cout << "* decided to find the best man in the country to fight   *" << endl;
     cout << "* with the monster Nian. But people who tried to fight   *" << endl;
     cout << "* with the monster never came back. So the Emperor came  *" << endl;
     cout << "* up with a idea to train brave warrior and the one can  *" << endl;
     cout << "* defeat Nian can be the next Emperor of the kingdom.    *" << endl;
     cout << "* Many people have tried, but only 20 of them made to    *" << endl;
     cout << "* the camp. You will start as a level 1 warrior with     *" << endl;
     cout << "* basic armor Dun and Jian (Chinese sword). But you can  *" << endl;
     cout << "* buy more item from the store during the quest or       *" << endl;
     cout << "* complete a mission in the camp. You will have 3        *" << endl;
     cout << "* friends: Yu, Muye, Kongming. They can help you to find *" << endl;
     cout << "* mission in the camp and if you have any luck, you can  *" << endl;
     cout << "* have a friend come with you for the quest. You are on  *" << endl;
     cout << "* your own now, Good Luck!                               *" << endl;
     cout << "**********************************************************" << endl;
     system("pause");
     system("cls");
}

void Help(int Map)
{
     switch(Map)
     {
                case 0:
                           cout << "Hi " << Name << endl;
                           system("pause");
                           cout << "Your job is to find your Shixiong and Shimei" << endl;
                           cout << "They are your friends and you guys have the same" << endl;
                           cout << "Shifu. You will find them and learn ability with" << endl;
                           cout << "them. Your first Objective is to find them" << endl;
                           cout << "after this you will try to answer a set of question and" << endl;
                           cout << "a friend will come with you to the quest" << endl;
                           cout << "If you want to get ability, please choose OFFICE" << endl;
                           cout << "To kill a animal, choose KILL" << endl;
                           cout << "To find a person choose FIND" << endl;
                           cout << "To buy Item, choose SHOP" << endl;
                           cout << "To Exit choose EXIT" << endl;
                           cout << "Good Luck" << endl;
                           system("pause");
                           system("cls");
                           break;
                      case 1:
                           
                           break;
                      case 2:
                           
                           break;
                      case 3:
                           
                           break;
                      case 4:
                           
                           break;
                      case 5:
                           
                           break;
                      case 6:
                           
                           break;
                      case 7:
                           
                           break;
                      case 8:
                           
                           break;
                      case 9:
                           
                           break;
                      default:
                              cout << "Unidentified Error!" << endl;
                              exit(1);
     }
}
int Rand(int Range)
{
    return rand() % 3;
}
